<template>
    <div class="add-article">
        <div
            class="pointer center"
            @click="addFun"
        >
            <img
                src="~assets/images/add-img.png"
                alt=""
            >
            <span>新增</span>
        </div>
    </div>
</template>

<script>
    export default {
        methods: {
            addFun () {
                this.$parent.addFun();
            }
        }
    };
</script>

<style lang="less" scoped>
@import '~assets/styles/variable';
.add-article {
    display: flex;
    align-items: center;
    height: 30px;
    margin-bottom: 10px;
    font-size: @font-size-medium;
    img {
        margin-right: 6px;
    }
}
</style>
